package com.ht.aems.fesmonitor.actions.view;

import com.ht.aems.fesmodel.CommUnit;
import com.ht.aems.fesmonitor.FesMonitor;
import com.ht.aems.fesmonitor.HisBufferDataQueryFrame;
import com.ht.aems.fesmonitor.chart.ChartFrame;
import com.ht.aems.swing.util.MyAction;
import com.ht.aems.swing.util.SwingUtil;

import javax.swing.*;
import java.awt.event.ActionEvent;
import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: Yanxue
 * Date: 12-2-29
 */
public class HistoryMessage extends MyAction{
    public void actionPerformed(ActionEvent e) {
        FesMonitor monitor = (FesMonitor) this.getAncestor();
        List<CommUnit> commUnits = monitor.getCommUnits();
        HisBufferDataQueryFrame.showFrame(commUnits);
    }
}
